package com.eastedu.client.encrypt;

import com.eastedu.client.encrypt.model.FileEncryptRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author 袁松明
 */
@FeignClient(name = "infrastructure-file-decrypt-service", path = "/infrastructure-file-decrypt-service")
public interface FileDecryptClient {
    /**
     * 加密文件
     *
     * @param request 请求参数
     * @return 已经加密过的文件
     */
    @PostMapping(value = "/api/files?version=1.0")
    List<Long> createFileEncrypt(@RequestBody FileEncryptRequest request);
}
